package cn.wolfcode.edu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter
@Setter
@ToString
public class Attendance extends BaseDomain {
    private Employee employee;//员工姓名
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Date signInTime;//签到时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(pattern = "HH:mm:ss",timezone = "GMT+8")
    private Date signBackTime;//签退时间

    private boolean instatus = false;//签到状态

    private boolean backStatus = false;//签退状态
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date attendanceDate;//签到记录日期
}